package com.cyq.dascma.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * dingwen
 * 2021/4/4 21:56
 **/
@Getter
@Setter
@ToString
@ApiModel(description = "课程成绩计算规则")
@TableName("dasc_man_rule")
public class Rule implements Serializable {
    private static final long serialVersionUID = -3724152400712157296L;

    @ApiModelProperty(name = "courseId", value = "课程编号")
    @TableField(value = "course_id")
    private String courseId;

    @ApiModelProperty(name = "teacherId", value = "授课教师编号")
    @TableField(value = "teacher_id")
    private String teacherId;

    @ApiModelProperty(name = "ruleAttendance", value = "考勤成绩占有比例")
    @TableField(value = "rule_attendance")
    private Float ruleAttendance;

    @ApiModelProperty(name = "ruleHomework", value = "作业成绩占有比例")
    @TableField(value = "rule_homework")
    private Float ruleHomework;

    @ApiModelProperty(name = "ruleClazz", value = "平时上课成绩占有比例")
    @TableField(value = "rule_clazz")
    private Float ruleClazz;

    @ApiModelProperty(name = "ruleMiddle", value = "期中成绩占有比例")
    @TableField(value = "rule_middle")
    private Float ruleMiddle;


    @ApiModelProperty(name = "ruleEnd", value = "期末成绩占有比例")
    @TableField(value = "rule_end")
    private Float ruleEnd;


}
